package com.itheima.Demo3;

import com.itheima.Demo2.Animal;

public class Cat extends Animal{
    private String type;
    @Override
    public void withPeople() {
        System.out.println("猫咪可以陪主人玩耍");
    }

    public Cat(String type) {
        this.type = type;
    }

    public Cat() {
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Cat(String name, int age, String type) {
        super(name, age);
        this.type = type;
    }
}
